package com.maker.mcp.client.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
@Configuration
public class OKHttpConfig {
    @Bean
    public OkHttpClient okHttpClient() {
        return new OkHttpClient.Builder()
                .connectTimeout(30, TimeUnit.SECONDS)
                .readTimeout(60, TimeUnit.SECONDS)
//                .followRedirects(true)      // 允许 301/302
//                .followSslRedirects(true)
                .build();
    }
}
